﻿using Shop.RemoteModel.Stock;
using Shop.Service.Interface;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class StockEvent : IRpcApiService
    {
        private readonly IStockService _Service;

        public StockEvent (IStockService service)
        {
            this._Service = service;
        }
        public int GetSkuStockNum (GetSkuStockNum obj)
        {
            return this._Service.GetStockNum(obj.SkuId);
        }

        public bool AddSkuStock (AddSkuStock param)
        {
            return this._Service.Add(param.Data);
        }

    }
}
